﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
namespace webnew
{
    public partial class StartPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }


        /// <summary>
        /// 进入油库
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void rbtnYouKu_CheckedChanged(object sender, EventArgs e)
        {
           // string strServerIP=Request.ServerVariables.Get("Remote_Addr").ToString();
            string strOilDepotUrl = ConfigurationManager.AppSettings["OilDeptUrl"];
           // if (strServerIP == strOilDepotUrl)
           // {
                Response.Redirect("http://" + strOilDepotUrl + "/login.aspx");
            //}
            //else
            //{
            //    Response.Redirect("ErroPage.aspx?erro=1");
            //}
        }
         

        /// <summary>
        /// 进入公司
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void rbtnCompany_CheckedChanged(object sender, EventArgs e)
        {
            string strCompUrl = ConfigurationManager.AppSettings["CompanyUrl"];
            Response.Redirect("http://" + strCompUrl + "/login.aspx");
        }
    }
}
